﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pub
{
    public static class CWind
    {

        public static int getWindLevel(double windSpeed)
        {

            if (0 <= windSpeed && windSpeed <= 0.2) return 0;
            if (0.3 <= windSpeed && windSpeed <= 1.5) return 1;
            if (1.6 <= windSpeed && windSpeed <= 3.3) return 2;
            if (3.4 <= windSpeed && windSpeed <= 5.4) return 3;
            if (5.5 <= windSpeed && windSpeed <= 7.9) return 4;
            if (8.0 <= windSpeed && windSpeed <= 10.7) return 5;
            if (10.8 <= windSpeed && windSpeed <= 13.8) return 6;
            if (13.9 <= windSpeed && windSpeed <= 17.1) return 7;
            if (17.2 <= windSpeed && windSpeed <= 20.7) return 8;
            if (20.8 <= windSpeed && windSpeed <= 24.4) return 9;
            if (24.5 <= windSpeed && windSpeed <= 28.4) return 10;
            if (28.5 <= windSpeed && windSpeed <= 32.6) return 11;
            if (32.7 <= windSpeed && windSpeed <= 36.9) return 12;

            return -1;
        }




    }
}
